package com.ucenter.server.org.service;

import java.util.List;

import org.springframework.stereotype.Component;

import com.system.comm.model.KvEntity;
import com.system.handle.model.ResponseFrame;
import com.ucenter.server.org.pojo.OrgInfo;

/**
 * org_info的Service
 * @author autoCode
 * @date 2018-12-01 09:50:14
 * @version V1.0.0
 */
@Component
public interface OrgInfoService {
	
	/**
	 * 保存或修改
	 * @param orgInfo
	 * @return
	 */
	public ResponseFrame saveOrUpdate(OrgInfo orgInfo);
	
	/**
	 * 根据orgId获取对象
	 * @param orgId
	 * @return
	 */
	public OrgInfo get(String orgId);

	/**
	 * 分页获取对象
	 * @param orgInfo
	 * @return
	 */
	public ResponseFrame pageQuery(OrgInfo orgInfo);
	
	/**
	 * 根据orgId删除对象
	 * @param orgId
	 * @return
	 */
	public ResponseFrame delete(String orgId);
	
	public List<OrgInfo> findAll();

	public List<KvEntity> findKvAll();
}